#ifndef INTERNET_H
#define INTERNET_H

#include <QWidget>
#include <QtNetwork/QNetworkConfiguration>
#include <QtNetwork/QNetworkConfigurationManager>
#include <QtNetwork/QNetworkSession>
#include <QMessageBox>
#include <QProcess>
#include <QSerialPort>
#include "zg291paradata.h"
namespace Ui {
class internet;
}

class internet : public QWidget
{
    Q_OBJECT

public:
    explicit internet(QSerialPort *serialPort,QWidget *parent = nullptr);
    ~internet();

private slots:
    void on_refresh_clicked();

    void on_pushButton_clicked();

    void on_net_type_currentIndexChanged(int index);
signals:
    void netportConnect();
private:
    Ui::internet *ui;
    QSerialPort *serialPort;
    void scanAvailableWifiNetworks();
    void readserver_and_port();
    void scanWithNativeAPI();
};

#endif // INTERNET_H
